import * as directorysApi from '../../api/hmmm/directorys'

export default {
  namespaced: true,
  state: {
    directorysList: {}
  },
  mutations: {
    SET_DIRECTORYS_LIST(state, newValue) {
      state.directorysList = newValue
    },
  },
  actions: {
    async updateDirectorysList({ commit }, params) {
      const res = await directorysApi.list(params);
      commit('SET_DIRECTORYS_LIST', res);
    },
  },
}
